import request from '@/utils/request';
/**
 * 收付款账户 - 分页查询列表
 * @param {Object} data
//  */
export function getPaymentAccountList(data) {
  return request.get(`/system/paymentAccount/list?${data}`);
}

/**
 * 收付款账户 - 添加
 * @param {Object} data
//  */
export function setPaymentAccountSave(data) {
  return request.post('/system/paymentAccount/save', data);
}

/**
 * 收付款账户 - 编辑
 * @param {Object} data {}
//  */
export function setPaymentAccountUpdate(data) {
  return request.post('/system/paymentAccount/update', data);
}

/**
 * 收付款账户 - 查看详情
 *@param {id}
//  */
export function getPaymentAccountInfo(id) {
  return request.get('/system/paymentAccount/info/' + id);
}

/**
 * 收付款账户 - 删除
 * @param {Object} data {}
//  */
export function setPaymentAccountDelete(ids) {
  return request.post('/system/paymentAccount/delete?ids=' + ids);
}

/**
 * 收付款账户 - 禁用
 * @param {Object} data {}
//  */
export function setPaymentAccountDisable(ids) {
  return request.post('/system/paymentAccount/disable?ids=' + ids);
}
/**
 * 收付款账户 - 启用
 * @param {Object} data {}
//  */
export function setPaymentAccountEnable(ids) {
  return request.post('/system/paymentAccount/enable?ids=' + ids);
}

/**
 * 收付款账户 - 类型列表
 *@param {id}
//  */
export function getPaymentAccountType() {
  return request.get('/system/paymentAccount/accountType');
}
